gdkwindow: Don't queue a redraw when calling gdk_window_raise with no effect
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 3 Jul 2014 15:48:28 +0000 (11:48 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 3 Jul 2014 15:54:27 +0000 (11:54 -0400)
commitb5eddb0aa1110e68224d5d17d0602c0fd50d5de4
tree658ff9695c0a31234f3e15ddc5ea1950a0d2d497
parentec140a8f07e7b494c3354ee4f1015b6531949098
gdkwindow: Don't queue a redraw when calling gdk_window_raise with no effect

The resize grip code in GTK+ likes to call gdk_window_raise a lot. The
unfortunate side effect of gdk_window_raise is that it queues an
invalidation on the entire window, even if it's already the topmost
child.

Add a return value to gdk_window_raise_internal, and only queue the
invalidation if the raise had an effect.
gdk/gdkwindow.c